package com.token.sysflow.action;

import com.token.base.FuncUtil;
import com.token.sql.IntegrateSql;
import com.token.sysflow.impl.SysSetFlowImpl;

/**
 * @author chenjianxiong 2020/4/12
 */
public class SysSetFlowAction extends AbstractFlowAction {
    public void executeAction(FuncUtil f,IntegrateSql iSql) throws Exception{
        SysSetFlowImpl handler = new SysSetFlowImpl();
        handler.setFlowId(f.getUrlQueryString("flowId", true, "流程Id[flowId]"));
        handler.setStepId(f.getUrlQueryString("stepId",true,"环节Id"));

        //办理人，会签会审不用传selectApprovers
        String approvers = f.getUrlQueryString("selectApprovers");
        if(approvers != null && !"".equals(approvers)){
            handler.setSelectApprover(approvers.split(";"));
        }

        this.start(f,iSql,handler);
    }
}
